package name.mrzc.licensing.repository;

import java.util.List;

import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import name.mrzc.licensing.db.ILicenseDB;
import name.mrzc.licensing.model.License;

@Repository
public interface LicenseRepository extends CrudRepository<License, String>, ILicenseDB {
	public List<License> findByOrganizationId(String organizationId);

	public License findByOrganizationIdAndLicenseId(String organizationId, String licenseId);
}
